
import { _decorator, Component, Node, RigidBody, tween, v3, Vec3 } from 'cc';
import { Grid } from './Grid/Grid';
import { AStarPathfinder } from './AstarPathfinder';
import { TankManager } from '../Managers/TankManager';

const { ccclass, property } = _decorator;
@ccclass('Astarmanager')
export class Astarmanager {

    private static instance: Astarmanager = null;

    private constructor() { }

    private grid: Grid;

    private pathfinder: AStarPathfinder;

    public static getInstance() {
        if (this.instance == null) {
            this.instance = new Astarmanager();
        }
        return this.instance;
    }
 
    public tank: TankManager = null;

}


